<?php $view->extend('admin/template', 'content', array('title' => 'Admin')); ?>



<div class="col c3">
	<h2><a href="<?php echo $view->url->linkTo('Admin','realm', array($realm->id))?>"><?php echo $realm->name;?></a></h2>
	<ul class="menu">
		<li><h4><a href="<?php echo $view->url->linkTo('Admin','commands', array($realm->id))?>">Commands</a></h4></li>
		<li><h4><a href="<?php echo $view->url->linkTo('Admin','startitems', array($realm->id))?>">Start items</a></h4></li>
		<li><h4><a href="<?php echo $view->url->linkTo('Admin','realm_command', array($realm->id))?>">Command Interface</a></h4></li>
	</ul>
	

	
</div>


<div class="col c6">
<?php $content = $view->getExtend('content') ?>
<?php if (!$content):?>
	<h2><?php echo $realm->name?></h2>
	
	<?php echo $realmForm;?>
	
	<p>
	<label>Realm name</label>
	<?php echo $realmForm->input('text','name', $realm->name)?>
	</p>
	
	<p>
	<label>Host</label>
	<?php echo $realmForm->input('text','host', $realm->address)?>
	</p>
	
	<p>
	<label>Port</label>
	<?php echo $realmForm->input('text','port', $realm->port)?>
	</p>
	

	<p>
	<?php echo $realmForm->input('submit','submit', 'Save realm info')?>
	</p>
	<?php echo $realmForm->close()?>
<?php else: ?>
	<?php echo $content ?>
<?php endif;?>
</div>
